// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class Vehicle : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Vehicle, MasterDbContextLocator>
    {

        public int VehicleId { get; set; }
        public string VehicleCode { get; set; }
        public string VehicleName { get; set; }
        public string LicenseNumber { get; set; }
        public string Model { get; set; }
        public double? LoadCapacity { get; set; }
        public string DeviceId { get; set; }
        public double? Longitude { get; set; }
        public double? Latitude { get; set; }
        public string PrjCode { get; set; }
        public string CompanyCode { get; set; }
        public string ManagePerson { get; set; }
        public string Remark { get; set; }
        public bool? Online { get; set; }
        public int? VehicleStatus { get; set; }
        public DateTime? LastLocationTime { get; set; }
        public DateTime? CreateDate { get; set; }
        public string CreatedBy { get; set; }
    
        public void Configure(EntityTypeBuilder<Vehicle> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(100);

                entityBuilder.Property(e => e.CreateDate).HasColumnType("datetime");

                entityBuilder.Property(e => e.CreatedBy).HasMaxLength(50);

                entityBuilder.Property(e => e.DeviceId)
                    .HasMaxLength(50)
                    .IsUnicode(false);

                entityBuilder.Property(e => e.LastLocationTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.LicenseNumber).HasMaxLength(10);

                entityBuilder.Property(e => e.ManagePerson).HasMaxLength(50);

                entityBuilder.Property(e => e.Model).HasMaxLength(100);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.Remark).HasMaxLength(1000);

                entityBuilder.Property(e => e.VehicleCode).HasMaxLength(50);

                entityBuilder.Property(e => e.VehicleName).HasMaxLength(100);
        }

    }
}

